package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author xudongdong
 * @version 1.0
 * @date 2020-05-16
 */
@Data
@ApiModel(value = "产品贴息补贴表")
@TableName("product_discount_subsidy")
public class ProductDiscountSubsidy extends BaseEntity<ProductDiscountSubsidy> {

    @ApiModelProperty(value = "贴息方案ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long discountPlanId;

    @ApiModelProperty(value = "补贴方;制造商、经销商、GPS厂商")
    private String subsidySide;

    @ApiModelProperty(value = "补贴方名称")
    private String subsidyName;

    @ApiModelProperty(value = "补贴比例")
    private BigDecimal subsidyRate;

    @ApiModelProperty(value = "最高补贴金额")
    private BigDecimal subsidyMoney;

    @ApiModelProperty(value = "贴息规则方案ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long discountRulePlanId;

    @ApiModelProperty(value = "选择;0-方案；1-数值")
    private String singleSelect;

    @ApiModelProperty(value = "是否总对总")
    private String totalToTotal;

    @ApiModelProperty(value = "排序 ")
    private Integer discountSerialNumber;
}
